package com.lo.controller;

import com.lo.common.JsonResult;
import com.lo.service.OptionScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("OptionScore")
public class OptionScoreController {
    @Autowired
    private OptionScoreService optionScoreService;

    @RequestMapping("updateRecNum")
    public JsonResult updateRecNum(@RequestParam("RecNum") int RecNum){
        return optionScoreService.updateRecNum(RecNum);
    }
    @RequestMapping("selectRecNum")
    public JsonResult selectRecNum(){
        return optionScoreService.selectRecNum();
    }
}
